<?php

namespace App\Models;

class OrderSku extends Base
{
    protected $casts = [
        'created_at' => 'datetime:Y-m-d H:i:s',
        'updated_at' => 'datetime:Y-m-d H:i:s',
        'deleted_at' => 'datetime:Y-m-d H:i:s',
        'sku_snapshot' => 'array'
    ];

    public function commodityActivitySku()
    {
        return $this->belongsTo(CommodityActivitySku::class, 'commodity_activity_sku_id');
    }
}
